import request from '@/utils/request'
//我的练习接口
export function testExercisesHisQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/testExercisesHis/query',
    params: data,
  })
}

export function testExercisesHisQueryById(id) {
  //查询
  return request({
    method: 'get',
    url: '/testExercisesHis/query/' + id,
  })
}

export function testExercisesHisAdd(data) {
  //添加
  return request({
    method: 'post',
    url: '/testExercisesHis/add',
    data,
  })
}

export function testExercisesHisDelete(id) {
  //删除
  return request({
    method: 'get',
    url: '/testExercisesHis/delete/' + id,
  })
}

export function testExercisesHisUpdate(data) {
  //修改
  return request({
    method: 'post',
    url: '/testExercisesHis/update',
    data,
  })
}

export function testExercisesHisSubmitPaper(data) {
  //提交练习答案
  return request({
    method: 'post',
    url: '/testExercisesHis/submitPaper',
    data,
  })
}
